package com.zxx.javapattern.chainOfResponsibility.demo4;

public abstract  class SaleHandler {

   protected SaleHandler successor;

    public SaleHandler getSuccessor() {
        return successor;
    }

    public void setSuccessor(SaleHandler successor) {
        this.successor = successor;
    }

    /**
     * 处理保存销售信息的请求
     * @param user
     * @param customer
     * @param saleModel
     * @return 是否处理成功
     */
    public abstract boolean sale(String user, String customer, SaleModel saleModel);




}
